package com.gm.camunda.service;

import com.gmadmin.common.ApiResponse;

/**
 * {@code @Author}: zhang liang
 * {@code @Date}: 2022/10/9 15:06
 * {@code @BelongsProject}: gm
 * {@code @BelongsPackage}: com.gm.camunda.service
 * {@code @Description}: 自定义流程定义服务实现
 */
public interface ProcessDefinitionService {
    /**
     * 部署通过资源
     * @param name
     * @param resource
     * @return
     */
    ApiResponse deployDefinitionByResource(String name, String resource);

    /**
     * 部署通过字符串
     * @param definitionName
     * @param resourceName
     * @param resource
     * @return
     */
    ApiResponse deployDefinitionByString(String definitionName, String resourceName, String resource);
}
